<?if($data->postie->notifications || $data->friend->requests):?>
<div id="notifications">
    <h2><a href="/postie/notifications">[ <?=dgettext('postie','All Notifications')?> ]</a><span><?=dgettext('postie','Notifications')?></span></h2>
<div class="container">
    <?if($data->friend->requests):?>
    <a href="/friend/requests" class="notify"><?=sprintf($data->friend->requests>1?dgettext('postie',' %s friend requests.'):dgettext('postie',' %s friend request.'),$data->friend->requests)?></a>
    <?endif;?>
    <div class="clear"></div>
    <?if($data->postie->notifications): foreach ($data->postie->notifications as $i):?>
            <div class="notification"><?=$i->message?><span class="date"><?=$i->date?></span></div>
    <?endforeach; endif;?>
    <div class="clear"></div>
</div>
</div>
<?endif;?>